package br.com.bringme.mvc;

import java.util.HashMap;

public abstract class Bootstrap implements Runnable {

	protected HashMap<String, String> configs = new HashMap<String, String>();
	public static final String DEFAULT_CONTROLLER = "default_controller"; 
	
	public Bootstrap() {
		setDefaultController("index");
	}
	
	public Bootstrap setConfig(String key, String value) {
		configs.put(key, value);
		return this;
	}
	
	public String getConfig(String key) {
		return configs.get(key);
	}
	
	public Bootstrap setDefaultController(String controllerName) {
		return setConfig(DEFAULT_CONTROLLER, controllerName);
	}
	
	@Override
	public void run() {
		
		
	}
}
